package pub.tbc.api.config;

import lombok.extern.slf4j.Slf4j;

import java.util.ResourceBundle;

/**
 * @author tbc on 2017/3/2 17:07:57.
 */
@Slf4j
public class ConfigHelper {

    /**
     * 获取属性资源对象，相于classpath路径
     *
     * @param path 路径
     * @return ResourceBundle对象
     */
    public static ResourceBundle getResource(String path) {
        return ResourceBundle.getBundle(path);
    }

    public static ResourceBundle getResource() {
        return getResource("config.properties");
    }

}
